package com.itlong.cloud.app.service;

import com.itlong.cloud.POJO.DTO.property.IotCloudElevatorStateDTO;

/**
 * <desc>
 *      用户呼梯预约状态业务处理接口
 * </desc>
 *
 * @createDate 2018/04/13
 */
public interface IAppCloudElevatorCallStatusService {
    /**
     * <desc>
     *      检测用户预约中的行程，并更新用户预约行程状态
     * </desc>
     *
     * @param dto
     * @author Jiaqi.X
     * @createDate 2018/04/13
     */
    void updateCallStatus(IotCloudElevatorStateDTO dto);

    /**
     * <desc>
     *      删除一天前的电梯状态
     * </desc>
     *
     * @return
     * @author Jiaqi.X
     * @createDate 2018/04/13
     */
    Integer deleteYestodayCallStatus();

    /**
     * <desc>
     *      将所有超过10分钟都没有预约完成的电梯状态修改为呼梯失败
     * </desc>
     *
     * @return
     * @author Jiaqi.X
     * @createDate 2018/04/13
     */
    Integer setCallStatusAsCallDefeat();

    /**
     * <desc>
     *      冷表数据转移
     * </desc>
     *
     * @createDate 2020/04/13
     * @author Jiaqi.X
     */
    void coldDataRemove() throws Exception;
}
